package com.xingu.xg.domain.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class CopyNodeQuery {
    @ApiModelProperty(value = "选中节点ID")
    @NotNull(message = "{selected.node.id.cannot.be.empty}")
    private Long selectedId;

    @ApiModelProperty("复制的节点")
    @Valid
    List<CopyNode> list;


    @Data
    public static class CopyNode {
        // 如下内容存放在 list 中
        @ApiModelProperty("原节点ID")
        @NotNull(message = "原ID不能为空")
        private Long originalId;
        @ApiModelProperty("原父级节点ID")
        private Long originalParentId;

    }
}
